<?php get_header(); ?>
			
					<?php
					$args = array('category_name'=>'articolo-home',
								'orderby' => 'post_date',
								'order' => 'DESC',
								'numberposts' => 1);
					$myposts = get_posts( $args );
					//$the_query = new WP_Query( $args );
					//var_dump($the_query);
					
					?>
					<?php foreach ( $myposts as $post ): setup_postdata($post); //if ($the_query->have_posts()) : while ($the_query->have_posts()) : the_post(); ?>
					
					<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix archive-box backgrounded shadow rounded'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
						
						<header>
						<h3 class="h2"><?php the_title(); ?></h3>
						<!-- <div class="page-header"><h1 class="single-title" itemprop="headline"><?php the_title(); ?></h1></div> -->
						<p class="meta"><?php _e("", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_date(); ?></time> <!--<?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?> <span class="amp">&</span> <?php _e("filed under", "bonestheme"); ?> <?php the_category(', '); ?>--></p>
						<!-- AddThis Button BEGIN -->
						<div class="addthis_toolbox addthis_default_style ">
						<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
						<a class="addthis_button_tweet"></a>
						<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
						<a class="addthis_counter addthis_pill_style"></a>
						</div>
						<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
						<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4fa954a933b3076a"></script>
						<!-- AddThis Button END -->					
						<div class="post-thumb">
							<?php the_post_thumbnail( 'large' /*'wpbs-featured'*/ ); ?>
						</div>
							
						</header> <!-- end article header -->
						<hr>
						<section class="post_content clearfix" itemprop="articleBody">
							<?php the_content(); ?>
							
							<?php wp_link_pages(); ?>
							<!-- AddThis Button BEGIN -->
						<div class="addthis_toolbox addthis_default_style ">
						<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
						<a class="addthis_button_tweet"></a>
						<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
						<a class="addthis_counter addthis_pill_style"></a>
						</div>
						<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
						<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4fa954a933b3076a"></script>
						<!-- AddThis Button END -->
					
						</section> <!-- end article section -->
						
						<footer>
			
							<?php the_tags('<p class="tags"><span class="tags-title">' . __("Tags","bonestheme") . ':</span> ', ' ', '</p>'); ?>
							
							<?php 
							// only show edit button if user has permission to edit posts
							if( $user_level > 0 ) { 
							?>
							<a href="<?php echo get_edit_post_link(); ?>" class="btn btn-success edit-post"><i class="icon-pencil icon-white"></i> <?php _e("Edit post","bonestheme"); ?></a>
							<?php } ?>
							
						</footer> <!-- end article footer -->
										<?php comments_template(); ?>
					
					</article> <!-- end article -->
					
					
					<?php endforeach;//endwhile; ?>			
					
					
					</div> <!-- end #main-left-col -->
				</div> <!-- end #main -->
    
				<?php //get_sidebar(); // sidebar 1 ?>
    
			</div> <!-- end #content -->

<?php get_footer(); ?>